import { ItemData } from "./ItemData";
import { EquimentContrastUtil } from "../../view/common/EquimentContrastUtil";
type int = number;
//class EquipmentToolTipData
    
    export  class EquipmentToolTipData
    {
        constructor(arg1: ItemData, arg2: Array<any>, arg3: Boolean=false, arg4: Boolean=false, arg5: Boolean=true, arg6: Boolean=true, arg7: Boolean=true, arg8: Boolean=true, arg9: Boolean=true, arg10: Boolean=false)
        {
            
            this.fashionJewelInfoArr = [];
            this.itemData = arg1;
            this.equipmentsOnPlayer = arg2;
            this.isContrast = arg3;
            this.isShowEquipped = arg4;
            this.isShowBaseAttr = arg5;
            this.isShowAddAttr = arg6;
            this.isShowInlayAttr = arg7;
            this.isShowSuitAttr = arg8;
            this.isShowWuxingAttr = arg9;
            this.isShowQualityFilter = arg10;
            return;
        }

        public getSameDressingOn(): ItemData
        {
            return EquimentContrastUtil.getSameDressingOnByItemData(this.itemData);
        }

        public isEquiped(): Boolean
        {
            var loc2=0;
            var loc3=null;
            var loc1=false;
            if (this.equipmentsOnPlayer && this.equipmentsOnPlayer.length > 0) 
            {
                loc2 = 0;
                while (loc2 < this.equipmentsOnPlayer.length) 
                {
                    loc3 = this.equipmentsOnPlayer[loc2] as ItemData;
                    if (loc3 && this.itemData && this.itemData.uid == loc3.uid) 
                    {
                        loc1 = true;
                    }
                    ++loc2;
                }
            }
            return loc1;
        }

        public isHidedAttr(): Boolean
        {
            return !this.isShowBaseAttr || !this.isShowAddAttr || !this.isShowInlayAttr || !this.isShowSuitAttr || !this.isShowWuxingAttr;
        }

        public /* var */itemData: ItemData;

        public /* var */equipmentsOnPlayer: Array<any>;

        public /* var */isContrast: Boolean;

        public /* var */isShowEquipped: Boolean;

        public /* var */isShowBaseAttr: Boolean=true;

        public /* var */isShowAddAttr: Boolean=true;

        public /* var */isShowInlayAttr: Boolean=true;

        public /* var */isShowSuitAttr: Boolean=true;

        public /* var */isShowWuxingAttr: Boolean=true;

        public /* var */isShowQualityFilter: Boolean=false;

        public /* var */additionalInfo: Object;

        public /* var */baseAttrExtraArray: Array<any>;

        public /* var */fashionJewelInfoArr: Array<any>;

        public /* var */roleLv: int;

        public /* var */flyLv: int;

        public /* var */showOwnEquip: int=0;
    }
